class Solution {
public
    vectorint getRow(int rowIndex) {
        vectorintans;
        while(rowIndex-- = 0){
            ans.push_back(1);
            for(int i = ans.size() - 2; i  0; i--)ans[i] += ans[i - 1];            
        }
        return ans;
    }
};
//2021.2.12 
